﻿@using Seal.Model;
@{
    ReportTask task = Model;

    task.TemplateDescription = "Default task executing the SQL and/or the Script of the task.";

    task.Script = @"@{
    ReportTask task = Model;
    Report report = task.Report;

    task.LogMessage($""Executing '{task.Name}'"");
    //Note that other assemblies can be used by saving the .dll in the Repository 'Assemblies' sub-folder...
    //Cancel task and report
    //task.Cancel();
    //Or disable another task
    //report.Tasks[1].Enabled = false;
}
";

    task.BodyScript = ReportTask.BodyScriptTemplate;
}
